//
//  PPNetworkApi.h
//  com.yjwh.yj
//
//  Created by ferver7 on 2018/10/18.
//  Copyright © 2018年 ferver7. All rights reserved.
//

#ifndef PPNetworkApi_h
#define PPNetworkApi_h

//https://mini-api.yjwh.shop/auction/list/main

//#define NETworkQequestURL @"http://192.168.0.101:8080/aschouas-oak"
#define NETworkQequestURL @"https://www.hnmobang.com/aschouas-oak"
//#define NETworkQequestURL @"http://192.168.3.120:8080/portal/"
#define NETworkUpdateURL @"https://www.hnmobang.com/aschouas-oak/app/upload?uploadState=3"
//#define NETworkArticleDetailURL @"https://mini-api.yjwh.shop/app-h5/#/" //h5根地址
#define NETworkArticleDetailURL @"http://yjwh.shop/app-h5/#/"
//#define NETworkArticleDetailURL @"http://192.168.3.120/app-h5/#/"//h5根地址
//http后缀
typedef NS_ENUM(NSInteger,HTTP_COMMAND_LIST){
    //system/getAllClassfy
    GETPHONECODE,
    user_phoneloginwithsms,
    app_home_ad,
    app_home_tab,
    app_home_rmdGoods,
    app_mall_classify,
    app_mall_goods,
    app_mall_goodDetail,
    app_person_collectionGoods,
    app_person_myCollectionGood,
    app_shoppingCart_insert,
    app_circle_getReleaseList,
    app_circle_getBbsInfoById,
    app_circle_getBbsType,
    app_home_orderMsg,
    app_message_list,
    app_getHeadlines,
    app_getHeadlinesById,
    app_mall_storeInfo,
    app_mall_getGoodsInStore,
    app_person_collectionStore,
    app_person_myCollectionStore,
    app_mall_goodTypeAtt,
    app_getUserInfo,
    app_person_address_list,
    app_person_address_delete,
    app_person_address_default,
    app_shoppingCart,
    app_circle_release,
    app_circle_getUserReleaseList,
    app_circle_deleteBbsInfo,
    app_circle_updateBbsState,
    app_person_complaint_submit,
    app_shoppingCart_shop,
    app_shoppingCart_update,
    app_shoppingCart_delete,
    app_coupon_myCouponList,
    app_coupon_deleteMyCoupon,
    app_shoppingCart_confirmOrder,
    app_order_submit,
    joinUs,
    app_order_list,
    app_order_cancel,
    app_order_delete,
    app_order_complete,
    app_order_detail,
    app_mall_plantGoods,
    app_searchGood,
    app_searchStore,
    app_saveUserInfo,
    app_person_address_insert,
    app_coupon_hasReceiveCoupon,
    app_coupon_getCoupon,
    app_coupon_hasPlantCoupon,
    app_person_myStore_serviceProjects,
    app_person_myStore_deleteProject,
    app_person_myStore_addorUpdateProject,
    app_message_reading,
    app_message_details,
    app_isOpenVisitorModel,
    
    
    AUCTIONORDERPAY,
    BUYBINDADDRESS,
    DEALACCOUNT,
    REFUNDBINDADDRESS,
    AUCTIONREFUNDCOMPLETE,
    auction_order_list_success,
    appraisal_mytask_list,
    auction_goods_ages,
    appraisal_reply,
    MYTASKUNANSWERED,
    SYSTEMSTARTPAY,
    auction_distribution_getsharepic,
    auction_distribution_overview,
    auction_distribution_prize_list,
    user_recommand_list,
    system_startpage,
    user_collect,
    user_collectlist,
    system_getShareTitle,
    auction_complain_postage,
    auction_complain_postage_add,
    auction_push,
    /*******************/
    HTTP_METHOD_RESERVE,
    HTTP_METHOD_COUNT
};
static char NHttpMethod[HTTP_METHOD_COUNT][64] = {
    #pragma mark - **************** 获取验证码
    "/app/sendSms",
    #pragma mark - **************** 验证码登录
    "/app/login",
    #pragma mark - **************** app首页广告
    "/app/home/ad",
    #pragma mark - **************** app首页8个分类
    "/app/home/tab",
    #pragma mark - **************** 首页推荐商品
    "/app/home/rmdGoods",
    #pragma mark - **************** 请求商品分类数据
    "/app/mall/classify",
    #pragma mark - **************** 请求所有商品分类
    "/app/mall/goods",
    #pragma mark - **************** 请求商品详情
    "/app/mall/goodDetail",
    #pragma mark - **************** 收藏/取消收藏商品
    "/app/person/collectionGoods",
    #pragma mark - **************** 我的收藏列表
    "/app/person/myCollectionGood",
    #pragma mark - **************** 加入购物车
    "/app/shoppingCart/insert",
    #pragma mark - **************** 互动列表数据
    "/app/circle/getReleaseList",
    #pragma mark - **************** 获取互动详情数据
    "/app/circle/getBbsInfoById",
    #pragma mark - **************** 获取互动分类数据
    "/app/circle/getBbsType",
    #pragma mark - **************** 获取首页订单信息
    "/app/home/orderMsg",
    #pragma mark - **************** 用户消息列表
    "/app/message/list",
    #pragma mark - **************** APP头条接口
    "/app/getHeadlines",
    #pragma mark - **************** 根据ID获取头条
    "/app/getHeadlinesById",
    #pragma mark - **************** 店铺信息
    "/app/mall/storeInfo",
    #pragma mark - **************** 店铺商品列表
    "/app/mall/getGoodsInStore",
    #pragma mark - **************** 用户收藏店铺
    "/app/person/collectionStore",
    #pragma mark - **************** 我收藏的店铺列表
    "/app/person/myCollectionStore",
    #pragma mark - **************** 商品类型、属性及库存接口
    "/app/mall/goodTypeAtt",
    #pragma mark - **************** 获取个人信息接口
    "/app/getUserInfo",
    #pragma mark - **************** 收货地址列表接口
    "/app/person/address/list",
    #pragma mark - **************** 删除收获地址
    "/app/person/address/delete",
    #pragma mark - **************** 设置默认地址
    "/app/person/address/default",
    #pragma mark - **************** 购物车列表接口
    "/app/shoppingCart",
    #pragma mark - **************** 发布动态
    "/app/circle/release",
    #pragma mark - **************** 获取我的发布动态
    "/app/circle/getUserReleaseList",
    #pragma mark - **************** 删除动态消息
    "/app/circle/deleteBbsInfo",
    #pragma mark - **************** 上下架动态消息
    "/app/circle/updateBbsState",
    #pragma mark - **************** 用户意见反馈
    "/app/person/complaint/submit",
    #pragma mark - **************** 立即购买接口
    "/app/shoppingCart/shop",
    #pragma mark - **************** 更新购物车数量接口
    "/app/shoppingCart/update",
    #pragma mark - **************** 删除订单接口
    "/app/shoppingCart/delete",
    #pragma mark - **************** 我的抵扣券接口
    "/app/coupon/myCouponList",
    #pragma mark - **************** 删除我的抵扣券接口
    "/app/coupon/deleteMyCoupon",
    #pragma mark - **************** 确认订单接口
    "/app/shoppingCart/confirmOrder",
    #pragma mark - **************** 提交订单接口
    "/app/order/submit",
    #pragma mark - **************** 加盟我们数据
    "/joinUs",
    #pragma mark - **************** 订单列表
    "/app/order/list",
    #pragma mark - **************** 取消订单
    "/app/order/cancel",
    #pragma mark - **************** 删除订单
    "/app/order/delete",
    #pragma mark - **************** 确认订单收货
    "/app/order/complete",
    #pragma mark - **************** 订单详情
    "/app/order/detail",
    #pragma mark - **************** 专享商品列表
    "/app/mall/plantGoods",
    #pragma mark - **************** 搜索商品
    "/app/searchGood",
    #pragma mark - **************** 搜索店铺
    "/app/searchStore",
    #pragma mark - **************** 提交资料
    "/app/saveUserInfo",
    #pragma mark - **************** 新增地址
    "/app/person/address/insert",
    #pragma mark - **************** 查询未领取的优惠券
    "/app/coupon/hasReceiveCoupon",
    #pragma mark - **************** 领取优惠券
    "/app/coupon/getCoupon",
    #pragma mark - **************** 查询是否有优惠券
    "/app/coupon/hasPlantCoupon",
    #pragma mark - **************** 我嗒店铺服务项目列表
    "/app/person/myStore/serviceProjects",
    #pragma mark - **************** 删除我哒店铺服务
    "/app/person/myStore/deleteProject",
    #pragma mark - **************** 新增服务店铺
    "/app/person/myStore/addorUpdateProject",
    #pragma mark - **************** 已读消息
    "/app/message/reading",
    #pragma mark - **************** 消息详情页
    "/app/message/details",
    #pragma mark - **************** 游客模式打开与否
    "/app/isOpenVisitorModel",
    
    
    #pragma mark - **************** 售后-卖家确定收货
    "auction/refund/complete",
    #pragma mark - **************** 查询已入账订单列表
    "auction/order/list/success",
    #pragma mark - **************** 我收到的鉴赏列表
    "appraisal/mytask/list",
    #pragma mark - **************** 查询专家回复年代
    "auction/goods/ages",
    #pragma mark - **************** 鉴赏回复
    "appraisal/reply",
    #pragma mark - **************** 我的鉴赏任务 待回复
    "appraisal/v1/mytask/unanswered",
    #pragma mark - **************** app支付统一
    "system/startpay",
    #pragma mark - **************** 生成分销图片
    "auction/distribution/getsharepic",
    #pragma mark - **************** 查询用户的分销概括
    "auction/distribution/overview",
    #pragma mark - **************** 查询分销奖励列表
    "auction/distribution/prize/list",
    #pragma mark - **************** 查询推荐的用户列表
    "user/recommand/list",
    #pragma mark - **************** 获取启动广告
    "system/startpage",
    #pragma mark - **************** 收藏取消
    "user/collect",
    #pragma mark - **************** 我的收藏
    "user/collectlist",
    #pragma mark - **************** 获取分享引导语
    "system/getShareTitle",
    #pragma mark - **************** 未包邮投诉查询
    "auction/complain/postage/detail",
    #pragma mark - **************** 未包邮投诉
    "auction/complain/postage/add",
    #pragma mark - **************** 开启/停止拍卖实时推送
    "auction/push",
};
UIKIT_STATIC_INLINE BOOL YJPPSUCCESS(NSDictionary *resopnse)
{
    NSNumber * returnStatus = resopnse[@"code"];
    NSInteger status = [returnStatus integerValue];
    if (status == 1000 && resopnse !=nil) {
        return YES;
    }else{
        return NO;
    }
}
UIKIT_STATIC_INLINE NSInteger YJPPFAILCODE(NSDictionary *resopnse)
{
    NSNumber * returnStatus = resopnse[@"code"];
    return returnStatus.integerValue;
}

#endif /* PPNetworkApi_h */
